aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/stats/[slug].tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/stats/[slug].tsx')
-rw-r--r--src/pages/stats/[slug].tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pages/stats/[slug].tsx b/src/pages/stats/[slug].tsx
index fc3f8bf..c6d8703 100644
--- a/src/pages/stats/[slug].tsx
+++ b/src/pages/stats/[slug].tsx
@@ -84,7 +84,7 @@ function Page({ chartData, channelData, sevenDayGraphData, slug }: { chartData:
async function getGraphData(slug: string){
const encodedSlug = encodeURIComponent(slug as string);
- const apiUrl = process.env.NEXT_PUBLIC_API_URL
+ const apiUrl = process.env.NEXT_PUBLIC_API_URL_TESTING
const response = await fetch(apiUrl+`/api/subscribers/${encodedSlug}`, {
headers: {
'Cache-Control': 'no-cache'
@@ -99,7 +99,7 @@ async function getGraphData(slug: string){
async function getChannelData(slug: string){
const encodedSlug = encodeURIComponent(slug as string);
- const apiUrl = process.env.NEXT_PUBLIC_API_URL
+ const apiUrl = process.env.NEXT_PUBLIC_API_URL_TESTING
const response = await fetch(apiUrl+`/api/channel/${encodedSlug}`, {
headers: {
'Cache-Control': 'no-cache'
@@ -114,7 +114,7 @@ async function getChannelData(slug: string){
async function get7DGraphData(slug: string){
const encodedSlug = encodeURIComponent(slug as string);
- const apiUrl = process.env.NEXT_PUBLIC_API_URL
+ const apiUrl = process.env.NEXT_PUBLIC_API_URL_TESTING
const response = await fetch(apiUrl+`/api/subscribers/${encodedSlug}/7d`, {
headers: {
'Cache-Control': 'no-cache'
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage